Skip to content

Generate the en_US.UTF-8 locale in the docker image #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

gordon-to
Copy link

@gordon-to gordon-to commented Mar 7, 2019

Fixes issues when working with utf-8 text from the command line

close #83

Fixes issues when working with utf-8 text from the command line
@kylecarbs kylecarbs requested review from nhooyr and removed request for kylecarbs and code-asher March 7, 2019 17:09
Copy link
Contributor

@nhooyr nhooyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appreciate the fix, thanks.

@@ -19,6 +19,8 @@ FROM ubuntu:18.10
RUN apt-get update
RUN apt-get install -y openssl
RUN apt-get install -y net-tools
RUN apt-get install -y locales
RUN locale-gen en_US.UTF-8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll also need

# We unfortunately cannot use update-locale because docker will not use the env variables
# configured in /etc/default/locale so we need to set it manually.
ENV LANG=en_US.UTF-8

@nhooyr
Copy link
Contributor

nhooyr commented Mar 7, 2019

If you don't mind, I'll take this over to get this out quicker. Will credit you in my PR.

@nhooyr nhooyr closed this in #98 Mar 7, 2019
code-asher pushed a commit that referenced this pull request Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Locales are not available in local docker image
2 participants